package edu.gatech.angry12.UI.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;

public class Exchanges extends Composite {

	public Exchanges() {
		
		FlexTable flexTable = new FlexTable();
		flexTable.setStyleName("gwt-SeedApp-Registration-background");
		initWidget(flexTable);
		flexTable.setSize("1028px", "540px");
		
		VerticalPanel verticalPanel = new VerticalPanel();
		flexTable.setWidget(1, 0, verticalPanel);
		
		Grid exchangeWrapperGrid = new Grid(1, 1);
		verticalPanel.add(exchangeWrapperGrid);
		exchangeWrapperGrid.setSize("1004px", "483px");
		
		Grid exchangeDisplayGrid = new Grid(2, 2);
		exchangeWrapperGrid.setWidget(0, 0, exchangeDisplayGrid);
		exchangeDisplayGrid.setSize("994px", "451px");
		
		Label lblPendingExchanges = new Label("Pending Exchanges");
		exchangeDisplayGrid.setWidget(0, 0, lblPendingExchanges);
		
		Label lblSuggestedExchanges = new Label("Suggested Exchanges");
		exchangeDisplayGrid.setWidget(0, 1, lblSuggestedExchanges);
		
		Frame pendingExchangeFrame = new Frame("http://www.google.com");
		exchangeDisplayGrid.setWidget(1, 0, pendingExchangeFrame);
		pendingExchangeFrame.setSize("481px", "403px");
		
		Frame suggestedExchangeFrame = new Frame("http://www.google.com");
		exchangeDisplayGrid.setWidget(1, 1, suggestedExchangeFrame);
		suggestedExchangeFrame.setSize("479px", "407px");
		
		Grid exchangeButtonGrid = new Grid(1, 4);
		verticalPanel.add(exchangeButtonGrid);
		verticalPanel.setCellVerticalAlignment(exchangeButtonGrid, HasVerticalAlignment.ALIGN_MIDDLE);
		verticalPanel.setCellHorizontalAlignment(exchangeButtonGrid, HasHorizontalAlignment.ALIGN_CENTER);
		
		Button btnAccept = new Button("Accept");
		exchangeButtonGrid.setWidget(0, 0, btnAccept);
		
		Button btnDecline = new Button("Decline");
		exchangeButtonGrid.setWidget(0, 1, btnDecline);
		
		Button btnCounter = new Button("Counter");
		exchangeButtonGrid.setWidget(0, 2, btnCounter);
		
		Button btnUpdate = new Button("Update");
		exchangeButtonGrid.setWidget(0, 3, btnUpdate);
	}

}
